package com.example.demo.Dao;

import com.example.demo.Entity.Admin;
import com.example.demo.Entity.Customer;
import org.apache.ibatis.annotations.Param;

public interface AdminMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    Admin selectByLoginName(String loginName);

    Admin selectByLoginNameAndPasswd(@Param("loginName") String loginName, @Param("password") String password);

    Admin selectByTelphoneAndPasswd(@Param("telphone") String telphone, @Param("password") String password);
}